package ronglei.day01.demo03;
//键盘输入两个数字 求和
import java.util.Scanner;

public class ScannerSum {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入第一个数子");
        int num1 = sc.nextInt();
        System.out.println("请输入第二个数字");
        int num2 = sc.nextInt();
        System.out.println("请输入第三个数字");
        int num3 = sc.nextInt();
        int num4 =  num1>num2?(num1>num3?num1:num3):(num2>num3?num2:num3);
        System.out.println("结果最大值是"+num4);

    }
}
